package se.statifyme.server.services;

import java.util.Collection;

import javax.servlet.http.HttpServletRequest;

import se.statifyme.server.entities.OwnedItem;

public interface OwnedItemService<E extends OwnedItem> {
	
	E getExample(HttpServletRequest request);

	E get(HttpServletRequest request, String id);
	
	Collection<E> getAll(HttpServletRequest request);
	
	void save(HttpServletRequest request, E item);
	
	void delete(HttpServletRequest request, String id);
}
